package org.aristotle.user.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import org.aristotle.user.model.dto.PermissionDTO;
import org.aristotle.user.model.entity.Permission;
import org.aristotle.user.model.vo.PermissionVO;

public interface IPermissionService extends IService<Permission> {
    Page<PermissionVO> queryPageList(
        Long id,
        String name,
        String identifier,
        Integer current,
        Integer size
    );

    PermissionVO getById(Long id);

    Boolean removeById(Long id);


    PermissionDTO getDTOById(Long permissionId);

    Boolean refreshAuthRule();
}
